<?php
return [
    'enablePrettyUrl' => true,
    'showScriptName' => false,
    'enableStrictParsing' => false,
    'rules' => [
        '/<controller:(\w+|\w+\-\w+)>/<id:\d+>' => '<controller>/item',
        "/<controller:(\w+|\w+\-\w+|\w+\-\w+\-\w+)>/<action:\w+>/<id:\d+>" => '<controller>/<action>',
        '/<controller:(\w+|\w+\-\w+)>/<action:\w+>' => '<controller>/<action>',
        '/' => 'site/index'
    ],
];